package com.itetchologyandenglish.home.enetity;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@ApiModel("公司")
@Data
@Accessors(chain = true)
public class Company {
    private Integer companyId;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format="yyyy-MM-dd")
    private Date createTime;
    private String companyName;
    private String companyProject;
    private Integer companyTypeId;
    private CompanyType companyType;//改动
    private String liaison;
    private String tel;
    private Integer isvip;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format="yyyy-MM-dd ")
    private Date beginTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format="yyyy-MM-dd ")
    private Date endTime;
    private String userName;
    private String password;
    private String recommend;
    private String companyPicUrl;
    private String introduction;
    private String shortIntroduction;
    public void setIntroduction(String introduction) {
        this.introduction = introduction;
        this.shortIntroduction=introduction.substring(0,5);
    }
    private Integer deflag;
    private AuthUser authUser;

    private Date lastTime;
}
